package entity;
public class MovieSimilarity implements Comparable<MovieSimilarity> {
    private String movieId;
    private Double similarity;
    public String getMovieId() {
        return movieId;
    }
    public void setMovieId(String movieId) {
        this.movieId = movieId;
    }
    public Double getSimilarity() {
        return similarity;
    }
    public void setSimilarity(Double similarity) {
        this.similarity = similarity;
    }
    @Override
    public int compareTo(MovieSimilarity o) {
        return -Double.compare(similarity, o.getSimilarity());
    }
}
